<%@page import="com.blockchain.front.service.content.entity.Article"%>
<%@page import="com.blockchain.front.service.content.ArticleManage"%>
<%@page import="com.blockchain.front.service.content.entity.Term"%>
<%@page import="com.blockchain.front.service.content.TermManage"%>
<%@page import="com.blockchain.common.enums.TermType"%>
<%
ArticleManage articleManage = serviceSession.getService(ArticleManage.class);
String type=request.getParameter("id");
if(StringHelper.isEmpty(type)){
		response.setStatus(HttpServletResponse.SC_NOT_FOUND);
		return;
	}
	Article article = articleManage.get(type);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<%
String _TITLE_ = " - "+configureProvider.getProperty(SystemVariable.SITE_NAME);
%>
<title> <%for (TermType is : TermType.values()) {%><%if(is.name().equals(type)){%><%StringHelper.filterHTML(out,backgroundDataFlag==1?is.getName():backgroundDataFlag==2?is.getNameEn():is.getNameTw());%><%}%><%}%><%=_TITLE_ %></title>
<%@include file="/WEB-INF/include/meta.jsp"%>
<%@include file="/WEB-INF/include/style.jsp" %>
</head>
<body style="background:#f4f9fc;">
<div class="protocol">
  <div class="tit">
     <h2><strong><%configureProvider.format(out, SystemVariable.SITE_NAME);%> <%for (TermType is : TermType.values()) {%><%if(is.name().equals(type)){%><%StringHelper.filterHTML(out,backgroundDataFlag==1?is.getName():backgroundDataFlag==2?is.getNameEn():is.getNameTw());%><%}%><%}%></strong></h2>
     <p>最后更新时间：<%=DateParser.format(articleManage.getTimestamp(type)) %></p>
  </div>
  <div class="con">
   <%if (article != null) {
	StringHelper.format(out,articleManage.getContent(article.id),fileStore);
	}%>
  </div>
</div>
</body>
</html>
